package com.hk.service;

import java.util.ArrayList;

import com.hk.dtos.ReplyDto;
import com.hk.idtos.IReplyDto;
import com.hk.service.ReplyManager;

public class ReplyService implements IReplyDto{

	private static ReplyService replyService;
	
	private IReplyDto replyManager;
	
	private ReplyService(){
		
		replyManager = new ReplyManager();
	}
	
	public static ReplyService getInstance(){
		if(replyService==null){
			
			replyService= new ReplyService();
		}
		return replyService;
	}

	@Override
	public void reply_insBoard(ReplyDto rd) {
		replyManager.reply_insBoard(rd);
		
	}

	@Override
	public ArrayList<ReplyDto> replyCount(int bid) {
		return replyManager.replyCount(bid);
		
	}

	@Override
	public ArrayList<ReplyDto> reGetBoards(ReplyDto val) {
		return replyManager.reGetBoards(val);
		
	}
	
}
